import { http } from '@/utils/http'
export default {
  getRoleList ({type, companyId, limit, page}) {
    return http.get('/get/role', {
      params: {
        type,
        company_id: companyId,
        limit,
        page
      }
    })
  },
  /**
   * 通过Id获取角色信息
   * @param roleId
   */
  getRoleById (roleId) {
    return http.get('/get/role/byId', {
      params: {
        role_id: roleId
      }
    })
  },
  getPermission (type) {
    return http.get('/permissions', {
      params: {
        type
      }
    })
  }
}
